package com.ben.multiple.message.base;

import com.ben.multiple.message.biz.model.MessageParam;
import com.ben.multiple.message.biz.model.MessageResult;
import lombok.AllArgsConstructor;

/**
 * @author BenJin Yin
 * @date 2020/7/23
 */
@AllArgsConstructor
public class MessageService {
    private final MessageClient messageClient;

    public MessageResult sendMessage(MessageParam param) {
        return messageClient.sendMessage(param.getPhoneSet(), param.getTemplateCode(), param.getTemplateParam());
    }
}
